function onLoad() {
	var X=window.arguments[0];
	document.title=X;
	update();
}

function onOK() {
	return true;
}

function onCancel() {
	return true;
}

function gei(v){
	return document.getElementById(v);
}

function dce(v){
	return document.createElement(v);
}

function clear(){
	var A=gei("params").childNodes;
	while(typeof A[2]!="undefined"){
		gei("params").removeChild(A[2]);
	}
}

function update(){
	// Clear old list
	clear();
	// Get a list of active processes and display
	var inn=window.arguments[2].TWB;

	// Processes
	var P=inn.Processor.processes;
	for(process in P){
		var nam=process;
		var R=dce("row");
		var R1=dce("label");
		R1.setAttribute("value","");
		var R2=dce("label");
		R2.setAttribute("value",nam);
		var R3=dce("label");
		R3.setAttribute("value",P[process].function.replace(/\(|\)/g,''));
		var R4=dce("label");
		R4.setAttribute("value",!P[process].kill);
		var R5=dce("button");
		R5.setAttribute("label","X");
		R5.setAttribute("oncommand","window.arguments[2].TWB.Processor.stop('"+nam+"')");
		var R6=dce("label");
		R6.setAttribute("value","");
		R.appendChild(R1);
		R.appendChild(R2);
		R.appendChild(R3);
		R.appendChild(R4);
		R.appendChild(R5);
		R.appendChild(R6);
		gei("params").appendChild(R);
	}
}

window.setInterval(update,250);